home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: gnuplot.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 50 6c 6f 74 74 69 6e |\chapter|{Plottin|
|00000010| 67 7d 0d 5c 69 6e 64 65 | 78 7b 70 6c 6f 74 74 69 |g}.\inde|x{plotti|
|00000020| 6e 67 7c 28 7d 0d 0d 5c | 52 4c 61 42 5c 20 63 61 |ng|(}..\|RLaB\ ca|
|00000030| 6e 20 70 6c 6f 74 20 75 | 73 69 6e 67 20 74 77 6f |n plot u|sing two|
|00000040| 20 6d 65 74 68 6f 64 73 | 2e 20 20 54 68 65 20 66 | methods|. The f|
|00000050| 69 72 73 74 20 69 73 20 | 74 6f 20 75 73 65 20 74 |irst is |to use t|
|00000060| 68 65 20 70 6c 70 6c 6f | 74 0d 6c 69 62 72 61 72 |he plplo|t.librar|
|00000070| 79 2e 20 54 68 65 20 6f | 74 68 65 72 20 69 73 20 |y. The o|ther is |
|00000080| 74 6f 20 75 73 65 20 74 | 68 65 20 66 72 65 65 6c |to use t|he freel|
|00000090| 79 20 61 76 61 69 6c 61 | 62 6c 65 20 67 6e 75 70 |y availa|ble gnup|
|000000a0| 6c 6f 74 0d 70 6c 6f 74 | 74 69 6e 67 20 70 72 6f |lot.plot|ting pro|
|000000b0| 67 72 61 6d 2e 20 20 54 | 68 65 20 77 61 79 20 79 |gram. T|he way y|
|000000c0| 6f 75 72 20 5c 52 4c 61 | 42 5c 20 77 61 73 20 62 |our \RLa|B\ was b|
|000000d0| 75 69 6c 74 20 64 65 74 | 65 72 6d 69 6e 65 73 20 |uilt det|ermines |
|000000e0| 77 68 65 74 68 65 72 0d | 79 6f 75 20 63 61 6e 20 |whether.|you can |
|000000f0| 75 73 65 20 6e 65 69 74 | 68 65 72 2c 20 6a 75 73 |use neit|her, jus|
|00000100| 74 20 6f 6e 65 2c 20 6f | 72 20 62 6f 74 68 20 6d |t one, o|r both m|
|00000110| 65 74 68 6f 64 73 2e 20 | 0d 67 6e 75 70 6c 6f 74 |ethods. |.gnuplot|
|00000120| 20 63 61 6e 20 70 72 6f | 64 75 63 65 20 6f 75 74 | can pro|duce out|
|00000130| 70 75 74 20 6f 6e 20 6d | 61 6e 79 20 64 69 66 66 |put on m|any diff|
|00000140| 65 72 65 6e 74 0d 64 69 | 73 70 6c 61 79 20 74 79 |erent.di|splay ty|
|00000150| 70 65 73 20 61 6e 64 20 | 66 69 6c 65 20 66 6f 72 |pes and |file for|
|00000160| 6d 61 74 73 2c 20 74 68 | 6f 75 67 68 20 74 68 65 |mats, th|ough the|
|00000170| 20 71 75 61 6c 69 74 79 | 20 6f 66 20 74 68 65 20 | quality| of the |
|00000180| 70 6c 6f 74 74 69 6e 67 | 0d 76 61 72 69 65 73 20 |plotting|.varies |
|00000190| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|000001a0| 20 63 61 70 61 62 69 6c | 69 74 69 65 73 20 6f 66 | capabil|ities of|
|000001b0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 64 65 76 69 | the out|put devi|
|000001c0| 63 65 2e 20 70 6c 70 6c | 6f 74 20 64 6f 65 73 0d |ce. plpl|ot does.|
|000001d0| 6e 6f 74 20 68 61 76 65 | 20 74 68 65 20 73 61 6d |not have| the sam|
|000001e0| 65 20 72 61 6e 67 65 20 | 6f 66 20 6f 75 74 70 75 |e range |of outpu|
|000001f0| 74 20 6f 70 74 69 6f 6e | 73 2c 20 68 6f 77 65 76 |t option|s, howev|
|00000200| 65 72 20 69 74 20 69 73 | 20 73 75 70 70 6f 72 74 |er it is| support|
|00000210| 65 64 0d 75 6e 64 65 72 | 20 5c 52 4c 61 42 5c 20 |ed.under| \RLaB\ |
|00000220| 73 6f 6d 65 77 68 61 74 | 20 62 65 74 74 65 72 2e |somewhat| better.|
|00000230| 0d 0d 5c 52 4c 61 42 5c | 20 69 6d 70 6c 65 6d 65 |..\RLaB\| impleme|
|00000240| 6e 74 73 20 61 20 73 69 | 6d 70 6c 65 20 77 72 61 |nts a si|mple wra|
|00000250| 70 70 65 72 20 6f 76 65 | 72 20 73 6f 6d 65 20 6f |pper ove|r some o|
|00000260| 66 20 74 68 65 20 6d 6f | 72 65 20 63 6f 6d 6d 6f |f the mo|re commo|
|00000270| 6e 6c 79 20 75 73 65 64 | 0d 67 6e 75 70 6c 6f 74 |nly used|.gnuplot|
|00000280| 20 63 6f 6d 6d 61 6e 64 | 73 2c 20 74 68 6f 75 67 | command|s, thoug|
|00000290| 68 20 61 6c 6c 20 74 68 | 65 20 63 61 70 61 62 69 |h all th|e capabi|
|000002a0| 6c 69 74 69 65 73 20 6f | 66 20 67 6e 75 70 6c 6f |lities o|f gnuplo|
|000002b0| 74 20 61 72 65 20 73 74 | 69 6c 6c 0d 61 76 61 69 |t are st|ill.avai|
|000002c0| 6c 61 62 6c 65 2e 20 20 | 67 6e 75 70 6c 6f 74 20 |lable. |gnuplot |
|000002d0| 68 61 73 20 61 20 62 75 | 69 6c 74 2d 69 6e 20 68 |has a bu|ilt-in h|
|000002e0| 65 6c 70 20 66 61 63 69 | 6c 69 74 79 2c 20 61 6e |elp faci|lity, an|
|000002f0| 64 20 69 74 20 69 73 20 | 61 6c 73 6f 0d 70 6f 73 |d it is |also.pos|
|00000300| 73 69 62 6c 65 20 74 6f | 20 70 72 6f 64 75 63 65 |sible to| produce|
|00000310| 20 61 20 70 72 69 6e 74 | 65 64 20 6d 61 6e 75 61 | a print|ed manua|
|00000320| 6c 20 28 77 69 74 68 20 | 74 68 65 20 73 61 6d 65 |l (with |the same|
|00000330| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 29 2c 0d 74 | informa|tion),.t|
|00000340| 68 6f 75 67 68 20 74 68 | 69 73 20 69 73 20 6e 6f |hough th|is is no|
|00000350| 74 20 61 20 64 65 66 61 | 75 6c 74 20 74 61 72 67 |t a defa|ult targ|
|00000360| 65 74 20 77 68 65 6e 20 | 74 68 65 20 70 61 63 6b |et when |the pack|
|00000370| 61 67 65 20 69 73 20 63 | 6f 6d 70 69 6c 65 64 2e |age is c|ompiled.|
|00000380| 0d 41 6c 74 68 6f 75 67 | 68 20 77 65 20 77 69 6c |.Althoug|h we wil|
|00000390| 6c 20 63 6f 76 65 72 20 | 74 68 65 20 6d 6f 72 65 |l cover |the more|
|000003a0| 20 63 6f 6d 6d 6f 6e 6c | 79 20 75 73 65 64 20 66 | commonl|y used f|
|000003b0| 65 61 74 75 72 65 73 2c | 20 67 6e 75 70 6c 6f 74 |eatures,| gnuplot|
|000003c0| 20 69 73 20 61 0d 76 65 | 72 79 20 70 6f 77 65 72 | is a.ve|ry power|
|000003d0| 66 75 6c 20 70 61 63 6b | 61 67 65 2c 20 61 6e 64 |ful pack|age, and|
|000003e0| 20 61 63 63 65 73 73 20 | 74 6f 20 65 69 74 68 65 | access |to eithe|
|000003f0| 72 20 74 68 65 20 6f 6e | 2d 6c 69 6e 65 20 68 65 |r the on|-line he|
|00000400| 6c 70 20 6f 72 2c 0d 70 | 72 65 66 65 72 61 62 6c |lp or,.p|referabl|
|00000410| 79 2c 20 74 68 65 20 70 | 72 69 6e 74 65 64 20 6d |y, the p|rinted m|
|00000420| 61 6e 75 61 6c 20 77 69 | 6c 6c 20 6d 61 6b 65 20 |anual wi|ll make |
|00000430| 75 73 69 6e 67 20 74 68 | 65 20 61 64 76 61 6e 63 |using th|e advanc|
|00000440| 65 64 20 66 65 61 74 75 | 72 65 73 0d 65 61 73 69 |ed featu|res.easi|
|00000450| 65 72 2e 0d 0d 5c 70 61 | 72 61 67 72 61 70 68 7b |er...\pa|ragraph{|
|00000460| 50 6c 6f 74 20 50 72 6f | 63 65 73 73 7d 0d 0d 4d |Plot Pro|cess}..M|
|00000470| 61 6e 79 20 6f 66 20 74 | 68 65 20 5c 52 4c 61 42 |any of t|he \RLaB|
|00000480| 5c 20 70 6c 6f 74 74 69 | 6e 67 20 66 75 6e 63 74 |\ plotti|ng funct|
|00000490| 69 6f 6e 73 20 74 61 6b | 65 20 61 20 6e 75 6d 65 |ions tak|e a nume|
|000004a0| 72 69 63 20 61 72 67 75 | 6d 65 6e 74 0d 67 65 6e |ric argu|ment.gen|
|000004b0| 65 72 61 6c 6c 79 20 63 | 61 6c 6c 65 64 20 74 68 |erally c|alled th|
|000004c0| 65 20 70 6c 6f 74 20 70 | 72 6f 63 65 73 73 20 6e |e plot p|rocess n|
|000004d0| 75 6d 62 65 72 2e 20 20 | 45 61 63 68 20 70 6c 6f |umber. |Each plo|
|000004e0| 74 20 70 72 6f 63 65 73 | 73 20 69 73 20 61 0d 73 |t proces|s is a.s|
|000004f0| 65 70 65 72 61 74 65 20 | 67 6e 75 70 6c 6f 74 20 |eperate |gnuplot |
|00000500| 70 72 6f 67 72 61 6d 2e | 5c 66 6f 6f 74 6e 6f 74 |program.|\footnot|
|00000510| 65 7b 54 68 65 20 65 78 | 61 63 74 20 72 65 73 75 |e{The ex|act resu|
|00000520| 6c 74 20 6f 66 20 72 75 | 6e 6e 69 6e 67 20 6d 6f |lt of ru|nning mo|
|00000530| 72 65 20 74 68 61 6e 20 | 6f 6e 65 0d 67 6e 75 70 |re than |one.gnup|
|00000540| 6c 6f 74 20 70 72 6f 63 | 65 73 73 20 61 74 20 61 |lot proc|ess at a|
|00000550| 20 74 69 6d 65 20 76 61 | 72 69 65 73 20 77 69 74 | time va|ries wit|
|00000560| 68 20 74 68 65 20 6f 75 | 74 70 75 74 20 64 65 76 |h the ou|tput dev|
|00000570| 69 63 65 20 73 65 6c 65 | 63 74 65 64 2e 20 20 46 |ice sele|cted. F|
|00000580| 6f 72 0d 74 68 65 20 58 | 20 77 69 6e 64 6f 77 73 |or.the X| windows|
|00000590| 20 73 79 73 74 65 6d 2c | 20 65 61 63 68 20 67 6e | system,| each gn|
|000005a0| 75 70 6c 6f 74 20 70 72 | 6f 63 65 73 73 20 70 6c |uplot pr|ocess pl|
|000005b0| 6f 74 73 20 74 6f 20 61 | 20 64 69 66 66 65 72 65 |ots to a| differe|
|000005c0| 6e 74 0d 77 69 6e 64 6f | 77 2e 7d 20 20 54 6f 20 |nt.windo|w.} To |
|000005d0| 69 64 65 6e 74 69 66 79 | 20 77 68 69 63 68 20 67 |identify| which g|
|000005e0| 6e 75 70 6c 6f 74 20 70 | 72 6f 63 65 73 73 20 61 |nuplot p|rocess a|
|000005f0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 72 65 66 | functio|n is ref|
|00000600| 65 72 72 69 6e 67 20 74 | 6f 2c 0d 77 65 20 75 73 |erring t|o,.we us|
|00000610| 65 20 74 68 65 20 70 6c | 6f 74 20 70 72 6f 63 65 |e the pl|ot proce|
|00000620| 73 73 20 6e 75 6d 62 65 | 72 2e 20 49 66 20 79 6f |ss numbe|r. If yo|
|00000630| 75 20 64 6f 6e 27 74 20 | 73 70 65 63 69 66 79 20 |u don't |specify |
|00000640| 61 20 70 6c 6f 74 20 70 | 72 6f 63 65 73 73 2c 0d |a plot p|rocess,.|
|00000650| 74 68 65 20 64 65 66 61 | 75 6c 74 20 6f 66 20 5c |the defa|ult of \|
|00000660| 76 65 72 62 2b 30 2b 20 | 28 7a 65 72 6f 29 20 69 |verb+0+ |(zero) i|
|00000670| 73 20 75 73 65 64 2e 20 | 20 42 65 20 63 61 72 65 |s used. | Be care|
|00000680| 66 75 6c 20 6f 66 20 75 | 73 69 6e 67 20 6d 61 6e |ful of u|sing man|
|00000690| 79 20 70 6c 6f 74 0d 70 | 72 6f 63 65 73 73 65 73 |y plot.p|rocesses|
|000006a0| 2e 20 4f 6e 20 6d 61 63 | 68 69 6e 65 73 20 77 69 |. On mac|hines wi|
|000006b0| 74 68 6f 75 74 20 6d 75 | 63 68 20 70 68 79 73 69 |thout mu|ch physi|
|000006c0| 63 61 6c 20 6d 65 6d 6f | 72 79 2c 20 75 73 69 6e |cal memo|ry, usin|
|000006d0| 67 20 61 20 6c 6f 74 20 | 6f 66 0d 70 6c 6f 74 20 |g a lot |of.plot |
|000006e0| 70 72 6f 63 65 73 73 65 | 73 20 73 6c 6f 77 73 20 |processe|s slows |
|000006f0| 74 68 69 6e 67 73 20 64 | 6f 77 6e 20 62 61 64 6c |things d|own badl|
|00000700| 79 2e 0d 0d 5c 73 65 63 | 74 69 6f 6e 7b 53 65 74 |y...\sec|tion{Set|
|00000710| 74 69 6e 67 20 75 70 20 | 50 6c 6f 74 73 7d 0d 0d |ting up |Plots}..|
|00000720| 41 73 20 6d 65 6e 74 69 | 6f 6e 65 64 20 61 62 6f |As menti|oned abo|
|00000730| 76 65 2c 20 67 6e 75 70 | 6c 6f 74 20 69 73 20 63 |ve, gnup|lot is c|
|00000740| 61 70 61 62 6c 65 20 6f | 66 20 70 6c 6f 74 74 69 |apable o|f plotti|
|00000750| 6e 67 20 74 6f 20 6d 61 | 6e 79 20 64 69 66 66 65 |ng to ma|ny diffe|
|00000760| 72 65 6e 74 0d 74 79 70 | 65 73 20 6f 66 20 64 69 |rent.typ|es of di|
|00000770| 73 70 6c 61 79 20 61 6e | 64 20 66 69 6c 65 20 74 |splay an|d file t|
|00000780| 79 70 65 73 2e 20 20 4d | 6f 73 74 20 6f 66 20 74 |ypes. M|ost of t|
|00000790| 68 65 20 74 69 6d 65 2c | 20 67 6e 75 70 6c 6f 74 |he time,| gnuplot|
|000007a0| 20 63 61 6e 0d 63 6f 72 | 72 65 63 74 6c 79 20 69 | can.cor|rectly i|
|000007b0| 64 65 6e 74 69 66 79 20 | 74 68 65 20 64 69 73 70 |dentify |the disp|
|000007c0| 6c 61 79 20 79 6f 75 20 | 61 72 65 20 75 73 69 6e |lay you |are usin|
|000007d0| 67 2e 20 74 68 6f 75 67 | 68 20 74 68 69 73 20 6d |g. thoug|h this m|
|000007e0| 61 79 20 66 61 69 6c 2c | 0d 65 73 70 65 63 69 61 |ay fail,|.especia|
|000007f0| 6c 6c 79 20 69 66 20 79 | 6f 75 20 61 72 65 20 75 |lly if y|ou are u|
|00000800| 73 69 6e 67 20 67 6e 75 | 70 6c 6f 74 20 6f 76 65 |sing gnu|plot ove|
|00000810| 72 20 73 6f 6d 65 20 6b | 69 6e 64 20 6f 66 20 72 |r some k|ind of r|
|00000820| 65 6d 6f 74 65 20 6c 69 | 6e 6b 2e 20 20 49 6e 0d |emote li|nk. In.|
|00000830| 61 64 64 69 74 69 6f 6e | 2c 20 69 66 20 79 6f 75 |addition|, if you|
|00000840| 20 77 61 6e 74 20 74 68 | 65 20 70 6c 6f 74 20 74 | want th|e plot t|
|00000850| 6f 20 62 65 20 73 74 6f | 72 65 64 20 69 6e 20 61 |o be sto|red in a|
|00000860| 20 66 69 6c 65 20 66 6f | 72 20 6c 61 74 65 72 20 | file fo|r later |
|00000870| 75 73 65 2c 0d 79 6f 75 | 20 6e 65 65 64 20 74 6f |use,.you| need to|
|00000880| 20 72 65 64 69 72 65 63 | 74 20 74 68 65 20 6f 75 | redirec|t the ou|
|00000890| 74 70 75 74 20 6f 66 20 | 67 6e 75 70 6c 6f 74 2e |tput of |gnuplot.|
|000008a0| 20 20 20 0d 0d 54 68 65 | 20 6e 65 65 64 20 74 6f | ..The| need to|
|000008b0| 20 73 65 74 20 74 68 65 | 20 72 69 67 68 74 20 6b | set the| right k|
|000008c0| 69 6e 64 20 6f 66 20 74 | 65 72 6d 69 6e 61 6c 20 |ind of t|erminal |
|000008d0| 69 73 20 73 6f 20 63 6f | 6d 6d 6f 6e 20 74 68 65 |is so co|mmon the|
|000008e0| 72 65 20 69 73 20 61 0d | 73 70 65 63 69 61 6c 20 |re is a.|special |
|000008f0| 5c 52 4c 61 42 5c 20 66 | 75 6e 63 74 69 6f 6e 20 |\RLaB\ f|unction |
|00000900| 74 6f 20 64 6f 20 69 74 | 20 2d 2d 2d 20 5c 76 65 |to do it| --- \ve|
|00000910| 72 62 2b 73 65 74 74 65 | 72 6d 2b 2e 20 46 6f 72 |rb+sette|rm+. For|
|00000920| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2c 0d 73 | more de|tails,.s|
|00000930| 65 65 20 74 68 65 20 64 | 65 73 63 72 69 70 74 69 |ee the d|escripti|
|00000940| 6f 6e 20 69 6e 20 53 65 | 63 74 69 6f 6e 7e 5c 72 |on in Se|ction~\r|
|00000950| 65 66 7b 66 6e 3a 73 65 | 74 74 65 72 6d 7d 2e 20 |ef{fn:se|tterm}. |
|00000960| 20 49 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 6b 6e | If you |don't kn|
|00000970| 6f 77 0d 65 78 61 63 74 | 6c 79 20 77 68 69 63 68 |ow.exact|ly which|
|00000980| 20 74 65 72 6d 69 6e 61 | 6c 20 79 6f 75 20 73 68 | termina|l you sh|
|00000990| 6f 75 6c 64 20 62 65 20 | 75 73 69 6e 67 2c 20 74 |ould be |using, t|
|000009a0| 72 79 20 65 78 70 65 72 | 69 6d 65 6e 74 69 6e 67 |ry exper|imenting|
|000009b0| 20 77 69 74 68 0d 67 6e | 75 70 6c 6f 74 20 69 6e | with.gn|uplot in|
|000009c0| 20 69 6e 74 65 72 61 63 | 74 69 76 65 20 6d 6f 64 | interac|tive mod|
|000009d0| 65 2c 20 65 73 70 65 63 | 69 61 6c 6c 79 20 77 69 |e, espec|ially wi|
|000009e0| 74 68 20 74 68 65 20 5c | 76 65 72 62 2b 73 65 74 |th the \|verb+set|
|000009f0| 20 74 65 72 6d 69 6e 61 | 6c 2b 0d 63 6f 6d 6d 61 | termina|l+.comma|
|00000a00| 6e 64 2c 20 77 68 69 63 | 68 20 6c 69 73 74 73 20 |nd, whic|h lists |
|00000a10| 61 6c 6c 20 74 68 65 20 | 61 76 61 69 6c 61 62 6c |all the |availabl|
|00000a20| 65 20 74 65 72 6d 69 6e | 61 6c 20 6d 6f 64 65 73 |e termin|al modes|
|00000a30| 2e 20 20 0d 0d 54 68 65 | 20 6e 65 65 64 20 74 6f |. ..The| need to|
|00000a40| 20 72 65 64 69 72 65 63 | 74 20 6f 75 74 70 75 74 | redirec|t output|
|00000a50| 20 69 73 20 6c 65 73 73 | 20 63 6f 6d 6d 6f 6e 2c | is less| common,|
|00000a60| 20 74 68 6f 75 67 68 20 | 69 74 20 6d 61 79 20 6f | though |it may o|
|00000a70| 63 63 75 72 20 69 66 20 | 79 6f 75 0d 77 61 6e 74 |ccur if |you.want|
|00000a80| 20 74 6f 20 69 6d 70 6f | 72 74 20 79 6f 75 72 20 | to impo|rt your |
|00000a90| 70 6c 6f 74 73 20 69 6e | 74 6f 20 61 6e 6f 74 68 |plots in|to anoth|
|00000aa0| 65 72 20 70 61 63 6b 61 | 67 65 2c 20 77 68 69 63 |er packa|ge, whic|
|00000ab0| 68 20 72 65 71 75 69 72 | 65 73 20 79 6f 75 20 74 |h requir|es you t|
|00000ac0| 6f 0d 64 75 6d 70 20 74 | 68 65 20 70 6c 6f 74 20 |o.dump t|he plot |
|00000ad0| 74 6f 20 61 20 66 69 6c | 65 2e 20 20 54 68 65 20 |to a fil|e. The |
|00000ae0| 67 6e 75 70 6c 6f 74 20 | 63 6f 6d 6d 61 6e 64 20 |gnuplot |command |
|00000af0| 66 6f 72 20 74 68 69 73 | 20 69 73 20 5c 76 65 72 |for this| is \ver|
|00000b00| 62 2b 73 65 74 0d 6f 75 | 74 70 75 74 20 22 2b 7b |b+set.ou|tput "+{|
|00000b10| 5c 69 74 20 66 69 6c 65 | 6e 61 6d 65 7d 5c 76 65 |\it file|name}\ve|
|00000b20| 72 62 2b 22 2b 2e 20 20 | 54 6f 20 64 6f 20 74 68 |rb+"+. |To do th|
|00000b30| 69 73 20 69 6e 20 5c 52 | 4c 61 42 2c 20 79 6f 75 |is in \R|LaB, you|
|00000b40| 20 75 73 65 20 74 68 65 | 0d 5c 76 65 72 62 2b 70 | use the|.\verb+p|
|00000b50| 6c 6f 74 2b 20 63 6f 6d | 6d 61 6e 64 2c 20 77 68 |lot+ com|mand, wh|
|00000b60| 69 63 68 20 70 61 73 73 | 65 73 20 69 74 73 20 73 |ich pass|es its s|
|00000b70| 74 72 69 6e 67 20 61 72 | 67 75 6d 65 6e 74 73 20 |tring ar|guments |
|00000b80| 64 69 72 65 63 74 6c 79 | 20 74 6f 20 67 6e 75 70 |directly| to gnup|
|00000b90| 6c 6f 74 2e 0d 0d 48 65 | 72 65 20 69 73 20 61 6e |lot...He|re is an|
|00000ba0| 20 65 78 61 6d 70 6c 65 | 20 6f 66 20 73 65 74 74 | example| of sett|
|00000bb0| 69 6e 67 20 75 70 20 67 | 6e 75 70 6c 6f 74 20 74 |ing up g|nuplot t|
|00000bc0| 6f 20 70 72 6f 64 75 63 | 65 20 67 72 61 70 68 73 |o produc|e graphs|
|00000bd0| 20 69 6e 20 5c 4c 61 54 | 65 58 20 0d 70 69 63 74 | in \LaT|eX .pict|
|00000be0| 75 72 65 20 66 6f 72 6d | 61 74 2c 20 61 6e 64 20 |ure form|at, and |
|00000bf0| 73 65 6e 64 20 74 68 65 | 20 6f 75 74 70 75 74 20 |send the| output |
|00000c00| 74 6f 20 61 20 66 69 6c | 65 20 63 61 6c 6c 65 64 |to a fil|e called|
|00000c10| 20 5c 76 65 72 62 2b 6d | 79 66 69 6c 65 2b 3a 0d | \verb+m|yfile+:.|
|00000c20| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00000c30| 0d 3e 20 73 65 74 74 65 | 72 6d 28 22 6c 61 74 65 |.> sette|rm("late|
|00000c40| 78 22 29 3b 0d 3e 20 70 | 6c 6f 74 28 22 73 65 74 |x");.> p|lot("set|
|00000c50| 20 6f 75 74 70 75 74 20 | 5c 22 6d 79 66 69 6c 65 | output |\"myfile|
|00000c60| 5c 22 20 22 29 3b 0d 5c | 65 6e 64 7b 76 65 72 62 |\" ");.\|end{verb|
|00000c70| 61 74 69 6d 7d 0d 0d 4e | 6f 74 65 20 74 68 65 20 |atim}..N|ote the |
|00000c80| 75 73 65 20 6f 66 20 74 | 68 65 20 65 73 63 61 70 |use of t|he escap|
|00000c90| 65 64 20 71 75 6f 74 65 | 73 20 2d 2d 2d 20 71 75 |ed quote|s --- qu|
|00000ca0| 6f 74 65 73 20 61 72 65 | 20 72 65 71 75 69 72 65 |otes are| require|
|00000cb0| 64 20 62 79 20 67 6e 75 | 70 6c 6f 74 0d 74 6f 20 |d by gnu|plot.to |
|00000cc0| 64 65 6c 69 6d 69 74 20 | 74 68 65 20 6e 61 6d 65 |delimit |the name|
|00000cd0| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 2c 20 68 6f | of the |file, ho|
|00000ce0| 77 65 76 65 72 20 5c 52 | 4c 61 42 5c 20 77 6f 75 |wever \R|LaB\ wou|
|00000cf0| 6c 64 20 74 72 65 61 74 | 20 70 6c 61 69 6e 0d 71 |ld treat| plain.q|
|00000d00| 75 6f 74 65 73 20 61 73 | 20 74 68 65 20 20 65 6e |uotes as| the en|
|00000d10| 64 20 6f 66 20 74 68 65 | 20 73 74 72 69 6e 67 2e |d of the| string.|
|00000d20| 20 20 55 73 65 20 6f 66 | 20 74 68 65 20 65 73 63 | Use of| the esc|
|00000d30| 61 70 65 20 73 65 71 75 | 65 6e 63 65 20 61 6c 6c |ape sequ|ence all|
|00000d40| 6f 77 73 20 61 0d 73 74 | 72 69 6e 67 20 74 6f 20 |ows a.st|ring to |
|00000d50| 68 61 76 65 20 71 75 6f | 74 65 73 20 69 6d 62 65 |have quo|tes imbe|
|00000d60| 64 64 65 64 20 69 6e 20 | 69 74 2e 0d 0d 53 65 74 |dded in |it...Set|
|00000d70| 74 69 6e 67 20 74 68 65 | 20 6f 75 74 70 75 74 20 |ting the| output |
|00000d80| 74 6f 20 61 20 66 69 6c | 65 20 61 6e 64 20 74 68 |to a fil|e and th|
|00000d90| 65 20 74 65 72 6d 69 6e | 61 6c 20 74 79 70 65 20 |e termin|al type |
|00000da0| 74 6f 20 70 72 6f 64 75 | 63 65 0d 50 6f 73 74 53 |to produ|ce.PostS|
|00000db0| 63 72 69 70 74 2c 20 61 | 6e 64 20 74 68 65 6e 20 |cript, a|nd then |
|00000dc0| 72 65 73 65 74 74 69 6e | 67 20 69 74 20 74 6f 20 |resettin|g it to |
|00000dd0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 73 65 74 74 |the defa|ult sett|
|00000de0| 69 6e 67 2c 20 69 73 20 | 61 6e 6f 74 68 65 72 0d |ing, is |another.|
|00000df0| 6f 66 20 74 68 65 20 6d | 6f 72 65 20 63 6f 6d 6d |of the m|ore comm|
|00000e00| 6f 6e 20 74 68 69 6e 67 | 73 20 79 6f 75 20 6e 65 |on thing|s you ne|
|00000e10| 65 64 20 74 6f 20 64 6f | 2e 20 20 49 6e 20 66 61 |ed to do|. In fa|
|00000e20| 63 74 20 74 68 65 72 65 | 20 69 73 20 61 20 66 75 |ct there| is a fu|
|00000e30| 6e 63 74 69 6f 6e 0d 69 | 6e 74 65 6e 64 65 64 20 |nction.i|ntended |
|00000e40| 66 6f 72 20 6a 75 73 74 | 20 74 68 69 73 2c 20 63 |for just| this, c|
|00000e50| 61 6c 6c 65 64 20 5c 76 | 65 72 62 2b 70 68 72 64 |alled \v|erb+phrd|
|00000e60| 2b 2e 20 20 46 6f 72 20 | 6d 6f 72 65 20 64 65 74 |+. For |more det|
|00000e70| 61 69 6c 73 20 6f 6e 20 | 74 68 69 73 0d 66 75 6e |ails on |this.fun|
|00000e80| 63 74 69 6f 6e 2c 20 63 | 6f 6e 73 75 6c 74 20 53 |ction, c|onsult S|
|00000e90| 65 63 74 69 6f 6e 7e 5c | 72 65 66 7b 66 6e 3a 70 |ection~\|ref{fn:p|
|00000ea0| 68 72 64 7d 2e 20 20 49 | 6e 20 65 73 73 65 6e 63 |hrd}. I|n essenc|
|00000eb0| 65 2c 20 79 6f 75 20 6a | 75 73 74 20 73 75 70 70 |e, you j|ust supp|
|00000ec0| 6c 79 0d 74 68 65 20 70 | 72 6f 63 65 73 73 20 6e |ly.the p|rocess n|
|00000ed0| 75 6d 62 65 72 20 6f 66 | 20 74 68 65 20 70 6c 6f |umber of| the plo|
|00000ee0| 74 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 75 |t you wa|nt to du|
|00000ef0| 6d 70 20 74 6f 20 61 20 | 66 69 6c 65 2c 20 61 6e |mp to a |file, an|
|00000f00| 64 20 5c 52 4c 61 42 5c | 0d 70 72 6f 64 75 63 65 |d \RLaB\|.produce|
|00000f10| 73 20 61 20 66 69 6c 65 | 20 63 61 6c 6c 65 64 20 |s a file| called |
|00000f20| 5c 76 65 72 62 2b 72 6c | 61 62 2d 74 6d 70 2d 68 |\verb+rl|ab-tmp-h|
|00000f30| 72 64 66 2e 2b 6e 2c 20 | 77 68 65 72 65 20 6e 20 |rdf.+n, |where n |
|00000f40| 69 73 20 74 68 65 20 70 | 72 6f 63 65 73 73 0d 6e |is the p|rocess.n|
|00000f50| 75 6d 62 65 72 2e 20 59 | 6f 75 20 73 68 6f 75 6c |umber. Y|ou shoul|
|00000f60| 64 20 62 65 20 63 61 72 | 65 66 75 6c 20 6e 6f 74 |d be car|eful not|
|00000f70| 20 74 6f 20 6f 76 65 72 | 2d 77 72 69 74 65 20 6f | to over|-write o|
|00000f80| 6e 65 20 70 6c 6f 74 20 | 77 69 74 68 20 74 68 65 |ne plot |with the|
|00000f90| 0d 6e 65 78 74 2e 0d 0d | 49 6e 20 61 64 64 69 74 |.next...|In addit|
|00000fa0| 69 6f 6e 2c 20 69 74 20 | 69 73 20 70 6f 73 73 69 |ion, it |is possi|
|00000fb0| 62 6c 65 20 74 6f 20 73 | 65 6e 64 20 74 68 65 20 |ble to s|end the |
|00000fc0| 6f 75 74 70 75 74 20 6f | 66 20 67 6e 75 70 6c 6f |output o|f gnuplo|
|00000fd0| 74 20 74 6f 20 61 6e 6f | 74 68 65 72 0d 70 72 6f |t to ano|ther.pro|
|00000fe0| 63 65 73 73 2e 20 54 68 | 69 73 20 69 73 20 64 6f |cess. Th|is is do|
|00000ff0| 6e 65 20 62 79 20 6d 61 | 6b 69 6e 67 20 74 68 65 |ne by ma|king the|
|00001000| 20 66 69 72 73 74 20 63 | 68 61 72 61 63 74 65 72 | first c|haracter|
|00001010| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 6e 61 6d 65 | of the |filename|
|00001020| 0d 5c 76 65 72 62 2b 7c | 2b 20 28 70 69 70 65 20 |.\verb+||+ (pipe |
|00001030| 73 79 6d 62 6f 6c 29 2c | 20 61 6e 64 20 74 68 65 |symbol),| and the|
|00001040| 6e 20 64 69 72 65 63 74 | 6c 79 20 66 6f 6c 6c 6f |n direct|ly follo|
|00001050| 77 69 6e 67 20 69 74 20 | 62 79 20 74 68 65 20 6e |wing it |by the n|
|00001060| 61 6d 65 20 6f 66 0d 74 | 68 65 20 70 72 6f 67 72 |ame of.t|he progr|
|00001070| 61 6d 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 73 |am you w|ant to s|
|00001080| 65 6e 64 20 74 68 65 20 | 6f 75 74 70 75 74 20 74 |end the |output t|
|00001090| 6f 2e 20 54 68 65 20 6d | 6f 73 74 20 69 6d 70 6f |o. The m|ost impo|
|000010a0| 72 74 61 6e 74 20 75 73 | 65 20 6f 66 0d 74 68 69 |rtant us|e of.thi|
|000010b0| 73 20 69 73 20 74 68 61 | 74 20 69 74 20 61 6c 6c |s is tha|t it all|
|000010c0| 6f 77 73 20 79 6f 75 20 | 74 6f 20 70 72 69 6e 74 |ows you |to print|
|000010d0| 20 67 72 61 70 68 73 20 | 64 69 72 65 63 74 6c 79 | graphs |directly|
|000010e0| 20 66 72 6f 6d 20 5c 52 | 4c 61 42 2e 20 20 48 65 | from \R|LaB. He|
|000010f0| 72 65 0d 69 73 20 61 6e | 20 65 78 61 6d 70 6c 65 |re.is an| example|
|00001100| 2c 20 66 6f 72 20 61 20 | 50 6f 73 74 53 63 72 69 |, for a |PostScri|
|00001110| 70 74 20 70 72 69 6e 74 | 65 72 20 63 61 6c 6c 65 |pt print|er calle|
|00001120| 64 20 5c 76 65 72 62 2b | 69 6d 6f 67 65 6e 2b 20 |d \verb+|imogen+ |
|00001130| 3a 0d 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |:.\begin|{verbati|
|00001140| 6d 7d 0d 3e 20 73 65 74 | 74 65 72 6d 28 22 70 6f |m}.> set|term("po|
|00001150| 73 74 73 63 72 69 70 74 | 22 29 3b 0d 3e 20 70 6c |stscript|");.> pl|
|00001160| 6f 74 28 22 73 65 74 20 | 6f 75 74 70 75 74 20 5c |ot("set |output \|
|00001170| 22 7c 6c 70 72 20 2d 50 | 69 6d 6f 67 65 6e 5c 22 |"|lpr -P|imogen\"|
|00001180| 20 22 29 3b 0d 5c 65 6e | 64 7b 76 65 72 62 61 74 | ");.\en|d{verbat|
|00001190| 69 6d 7d 0d 0d 4e 6f 74 | 65 20 74 68 61 74 20 50 |im}..Not|e that P|
|000011a0| 6f 73 74 53 63 72 69 70 | 74 20 69 73 20 6e 6f 74 |ostScrip|t is not|
|000011b0| 20 74 68 65 20 6f 6e 6c | 79 20 70 72 69 6e 74 65 | the onl|y printe|
|000011c0| 72 20 66 6f 72 6d 61 74 | 20 74 68 61 74 20 67 6e |r format| that gn|
|000011d0| 75 70 6c 6f 74 20 63 61 | 6e 0d 70 72 6f 64 75 63 |uplot ca|n.produc|
|000011e0| 65 2e 20 20 4d 6f 73 74 | 20 63 6f 6d 6d 6f 6e 20 |e. Most| common |
|000011f0| 70 72 69 6e 74 65 72 73 | 20 61 72 65 20 65 69 74 |printers| are eit|
|00001200| 68 65 72 20 73 75 70 70 | 6f 72 74 65 64 20 64 69 |her supp|orted di|
|00001210| 72 65 63 74 6c 79 2c 20 | 6f 72 20 63 61 6e 0d 62 |rectly, |or can.b|
|00001220| 65 20 63 6f 6e 66 69 67 | 75 72 65 64 20 74 6f 20 |e config|ured to |
|00001230| 65 6d 75 6c 61 74 65 20 | 61 20 70 72 69 6e 74 65 |emulate |a printe|
|00001240| 72 20 74 68 61 74 20 69 | 73 20 73 75 70 70 6f 72 |r that i|s suppor|
|00001250| 74 65 64 2e 20 0d 0d 41 | 6e 6f 74 68 65 72 20 74 |ted. ..A|nother t|
|00001260| 68 69 6e 67 20 74 6f 20 | 6e 6f 74 65 20 69 73 20 |hing to |note is |
|00001270| 74 68 61 74 20 73 6f 6d | 65 20 74 65 72 6d 69 6e |that som|e termin|
|00001280| 61 6c 20 74 79 70 65 73 | 20 28 67 65 6e 65 72 61 |al types| (genera|
|00001290| 6c 6c 79 20 74 68 6f 73 | 65 20 66 6f 72 0d 70 72 |lly thos|e for.pr|
|000012a0| 69 6e 74 65 72 73 29 20 | 74 61 6b 65 20 65 78 74 |inters) |take ext|
|000012b0| 72 61 20 6f 70 74 69 6f | 6e 73 20 74 68 61 74 20 |ra optio|ns that |
|000012c0| 73 70 65 63 69 66 79 20 | 77 68 69 63 68 20 6d 6f |specify |which mo|
|000012d0| 64 65 20 6f 66 20 74 68 | 65 20 74 65 72 6d 69 6e |de of th|e termin|
|000012e0| 61 6c 0d 73 68 6f 75 6c | 64 20 62 65 20 75 73 65 |al.shoul|d be use|
|000012f0| 64 2e 20 20 20 41 73 20 | 6d 65 6e 74 69 6f 6e 65 |d. As |mentione|
|00001300| 64 20 61 62 6f 76 65 2c | 20 61 20 63 6f 6d 70 6c |d above,| a compl|
|00001310| 65 74 65 20 6c 69 73 74 | 20 6f 66 20 61 6c 6c 20 |ete list| of all |
|00001320| 74 65 72 6d 69 6e 61 6c | 0d 74 79 70 65 73 20 28 |terminal|.types (|
|00001330| 6f 75 74 70 75 74 20 66 | 6f 72 6d 61 74 73 29 2c |output f|ormats),|
|00001340| 20 61 6e 64 20 74 68 65 | 20 6f 70 74 69 6f 6e 73 | and the| options|
|00001350| 20 74 68 65 79 20 74 61 | 6b 65 2c 20 63 61 6e 20 | they ta|ke, can |
|00001360| 62 65 20 66 6f 75 6e 64 | 20 62 79 0d 69 6e 76 6f |be found| by.invo|
|00001370| 6b 69 6e 67 20 67 6e 75 | 70 6c 6f 74 20 61 74 20 |king gnu|plot at |
|00001380| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00001390| 2c 20 74 68 65 6e 20 75 | 73 69 6e 67 20 74 68 65 |, then u|sing the|
|000013a0| 20 20 5c 76 65 72 62 2b | 73 65 74 0d 74 65 72 6d | \verb+|set.term|
|000013b0| 69 6e 61 6c 2b 20 63 6f | 6d 6d 61 6e 64 2e 20 0d |inal+ co|mmand. .|
|000013c0| 0d 5c 73 65 63 74 69 6f | 6e 7b 42 61 73 69 63 20 |.\sectio|n{Basic |
|000013d0| 50 6c 6f 74 73 7d 0d 0d | 67 6e 75 70 6c 6f 74 20 |Plots}..|gnuplot |
|000013e0| 69 73 20 61 20 76 65 72 | 79 20 70 6f 77 65 72 66 |is a ver|y powerf|
|000013f0| 75 6c 20 70 72 6f 67 72 | 61 6d 2c 20 61 6e 64 20 |ul progr|am, and |
|00001400| 68 61 73 20 6d 61 6e 79 | 20 6f 70 74 69 6f 6e 73 |has many| options|
|00001410| 20 66 6f 72 0d 73 70 65 | 63 69 66 79 69 6e 67 20 | for.spe|cifying |
|00001420| 68 6f 77 20 74 68 65 20 | 70 6c 6f 74 73 20 74 75 |how the |plots tu|
|00001430| 72 6e 20 6f 75 74 2e 20 | 48 6f 77 65 76 65 72 2c |rn out. |However,|
|00001440| 20 69 6e 20 6d 6f 73 74 | 20 6f 66 20 74 68 65 20 | in most| of the |
|00001450| 70 6c 6f 74 73 20 79 6f | 75 0d 77 69 6c 6c 20 64 |plots yo|u.will d|
|00001460| 6f 2c 20 79 6f 75 20 77 | 69 6c 6c 20 73 69 6d 70 |o, you w|ill simp|
|00001470| 6c 79 20 62 65 20 6c 6f | 6f 6b 69 6e 67 20 66 6f |ly be lo|oking fo|
|00001480| 72 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |r the in|formatio|
|00001490| 6e 20 63 6f 6e 74 61 69 | 6e 65 64 0d 77 69 74 68 |n contai|ned.with|
|000014a0| 69 6e 20 74 68 65 20 70 | 6c 6f 74 2c 20 61 6e 64 |in the p|lot, and|
|000014b0| 20 74 68 65 20 67 6e 75 | 70 6c 6f 74 20 64 65 66 | the gnu|plot def|
|000014c0| 61 75 6c 74 73 20 77 69 | 6c 6c 20 62 65 20 71 75 |aults wi|ll be qu|
|000014d0| 69 74 65 20 61 63 63 65 | 70 74 61 62 6c 65 2e 0d |ite acce|ptable..|
|000014e0| 54 68 65 20 61 64 76 61 | 6e 63 65 64 20 6f 70 74 |The adva|nced opt|
|000014f0| 69 6f 6e 73 20 77 69 6c | 6c 20 62 65 20 63 6f 76 |ions wil|l be cov|
|00001500| 65 72 65 64 20 69 6e 20 | 74 68 65 20 6e 65 78 74 |ered in |the next|
|00001510| 20 73 65 63 74 69 6f 6e | 2e 0d 0d 54 68 65 20 62 | section|...The b|
|00001520| 61 73 69 63 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |asic com|mand to |
|00001530| 67 65 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |get info|rmation |
|00001540| 66 72 6f 6d 20 5c 52 4c | 61 42 5c 20 74 6f 20 67 |from \RL|aB\ to g|
|00001550| 6e 75 70 6c 6f 74 20 69 | 73 20 74 68 65 0d 5c 76 |nuplot i|s the.\v|
|00001560| 65 72 62 2b 70 6c 6f 74 | 2b 20 63 6f 6d 6d 61 6e |erb+plot|+ comman|
|00001570| 64 2e 20 53 65 65 20 53 | 65 63 74 69 6f 6e 7e 5c |d. See S|ection~\|
|00001580| 72 65 66 7b 66 6e 3a 70 | 6c 6f 74 7d 20 66 6f 72 |ref{fn:p|lot} for|
|00001590| 20 64 65 74 61 69 6c 65 | 64 20 72 65 66 65 72 65 | detaile|d refere|
|000015a0| 6e 63 65 0d 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e |nce.info|rmation.|
|000015b0| 20 20 5c 76 65 72 62 2b | 70 6c 6f 74 2b 20 6e 6f | \verb+|plot+ no|
|000015c0| 72 6d 61 6c 6c 79 20 74 | 61 6b 65 73 20 65 69 74 |rmally t|akes eit|
|000015d0| 68 65 72 20 61 20 73 69 | 6e 67 6c 65 20 6d 61 74 |her a si|ngle mat|
|000015e0| 72 69 78 2c 20 61 0d 6c | 69 73 74 20 6f 66 20 6d |rix, a.l|ist of m|
|000015f0| 61 74 72 69 63 69 65 73 | 2c 20 6f 72 20 61 20 73 |atricies|, or a s|
|00001600| 74 72 69 6e 67 20 61 73 | 20 69 74 73 20 61 72 67 |tring as| its arg|
|00001610| 75 6d 65 6e 74 2e 20 20 | 49 66 20 79 6f 75 20 77 |ument. |If you w|
|00001620| 69 73 68 20 74 6f 2c 20 | 79 6f 75 0d 6d 61 79 20 |ish to, |you.may |
|00001630| 61 6c 73 6f 20 61 64 64 | 20 61 20 73 65 63 6f 6e |also add| a secon|
|00001640| 64 20 61 72 67 75 6d 65 | 6e 74 2c 20 77 68 69 63 |d argume|nt, whic|
|00001650| 68 20 69 73 20 74 68 65 | 20 70 6c 6f 74 20 70 72 |h is the| plot pr|
|00001660| 6f 63 65 73 73 20 6e 75 | 6d 62 65 72 20 28 73 65 |ocess nu|mber (se|
|00001670| 65 0d 61 62 6f 76 65 29 | 2e 0d 0d 49 66 20 74 68 |e.above)|...If th|
|00001680| 65 20 61 72 67 75 6d 65 | 6e 74 20 69 73 20 61 20 |e argume|nt is a |
|00001690| 73 74 72 69 6e 67 2c 20 | 74 68 65 20 73 74 72 69 |string, |the stri|
|000016a0| 6e 67 20 28 77 69 74 68 | 6f 75 74 20 74 68 65 20 |ng (with|out the |
|000016b0| 73 75 72 72 6f 75 6e 64 | 69 6e 67 0d 64 6f 75 62 |surround|ing.doub|
|000016c0| 6c 65 20 71 75 6f 74 65 | 73 29 20 69 73 20 70 61 |le quote|s) is pa|
|000016d0| 73 73 65 64 20 64 69 72 | 65 63 74 6c 79 20 74 6f |ssed dir|ectly to|
|000016e0| 20 67 6e 75 70 6c 6f 74 | 2e 20 20 54 68 69 73 20 | gnuplot|. This |
|000016f0| 77 61 73 20 75 73 65 64 | 20 61 62 6f 76 65 2c 0d |was used| above,.|
|00001700| 61 6e 64 20 77 69 6c 6c | 20 62 65 20 75 73 65 64 |and will| be used|
|00001710| 20 61 67 61 69 6e 20 77 | 68 65 6e 20 77 65 20 73 | again w|hen we s|
|00001720| 65 65 20 74 68 65 20 61 | 64 76 61 6e 63 65 64 20 |ee the a|dvanced |
|00001730| 70 6c 6f 74 74 69 6e 67 | 20 66 65 61 74 75 72 65 |plotting| feature|
|00001740| 73 2e 0d 0d 49 66 20 74 | 68 65 20 61 72 67 75 6d |s...If t|he argum|
|00001750| 65 6e 74 20 69 73 20 61 | 20 73 69 6e 67 6c 65 20 |ent is a| single |
|00001760| 6d 61 74 72 69 78 2c 20 | 74 68 65 6e 20 66 69 72 |matrix, |then fir|
|00001770| 73 74 20 63 6f 6c 75 6d | 6e 20 69 73 20 74 61 6b |st colum|n is tak|
|00001780| 65 6e 20 61 73 20 74 68 | 65 0d 69 6e 64 65 70 65 |en as th|e.indepe|
|00001790| 6e 64 61 6e 74 20 76 61 | 72 69 61 62 6c 65 2c 20 |ndant va|riable, |
|000017a0| 61 6e 64 20 74 68 65 20 | 73 65 63 6f 6e 64 20 61 |and the |second a|
|000017b0| 6e 64 20 68 69 67 68 65 | 72 20 63 6f 6c 75 6d 6e |nd highe|r column|
|000017c0| 73 20 61 72 65 20 70 6c | 6f 74 74 65 64 0d 61 67 |s are pl|otted.ag|
|000017d0| 61 69 6e 73 74 20 69 74 | 2e 20 20 48 65 72 65 20 |ainst it|. Here |
|000017e0| 69 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 73 68 |is an ex|ample sh|
|000017f0| 6f 77 69 6e 67 20 69 74 | 3a 0d 5c 62 65 67 69 6e |owing it|:.\begin|
|00001800| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 3e 20 78 20 3d |{verbati|m}.> x =|
|00001810| 20 30 3a 32 2a 70 69 3a | 30 2e 30 31 3b 0d 3e 20 | 0:2*pi:|0.01;.> |
|00001820| 79 20 3d 20 73 69 6e 28 | 78 29 3b 0d 3e 20 41 20 |y = sin(|x);.> A |
|00001830| 3d 20 5b 78 27 2c 79 27 | 5d 3b 0d 3e 20 2f 2f 20 |= [x',y'|];.> // |
|00001840| 43 68 65 63 6b 20 74 68 | 61 74 20 41 20 69 73 20 |Check th|at A is |
|00001850| 77 68 61 74 20 77 65 20 | 77 61 6e 74 65 64 0d 3e |what we |wanted.>|
|00001860| 20 73 68 6f 77 28 41 29 | 0d 20 20 20 6e 61 6d 65 | show(A)|. name|
|00001870| 3a 20 20 20 20 20 20 41 | 20 20 20 20 20 0d 20 20 |: A| . |
|00001880| 20 63 6c 61 73 73 3a 20 | 20 20 20 20 6e 75 6d 20 | class: | num |
|00001890| 20 20 0d 20 20 20 74 79 | 70 65 3a 20 20 20 20 20 | . ty|pe: |
|000018a0| 20 72 65 61 6c 20 20 0d | 20 20 20 20 20 6e 72 3a | real .| nr:|
|000018b0| 20 20 20 20 20 20 36 32 | 39 20 20 20 0d 20 20 20 | 62|9 . |
|000018c0| 20 20 6e 63 3a 20 20 20 | 20 20 20 32 20 20 20 20 | nc: | 2 |
|000018d0| 20 0d 3e 20 2f 2f 20 54 | 77 6f 20 63 6f 6c 75 6d | .> // T|wo colum|
|000018e0| 6e 73 20 69 73 20 77 68 | 61 74 20 49 20 68 61 64 |ns is wh|at I had|
|000018f0| 20 69 6e 20 6d 69 6e 64 | 2e 20 50 6c 6f 74 20 74 | in mind|. Plot t|
|00001900| 6f 20 74 68 65 20 73 63 | 72 65 65 6e 20 74 6f 20 |o the sc|reen to |
|00001910| 63 68 65 63 6b 20 69 74 | 0d 3e 20 70 6c 6f 74 28 |check it|.> plot(|
|00001920| 41 29 3b 0d 3e 20 2f 2f | 20 54 68 61 74 20 77 61 |A);.> //| That wa|
|00001930| 73 20 77 68 61 74 20 77 | 65 20 77 61 6e 74 65 64 |s what w|e wanted|
|00001940| 2e 20 4e 6f 77 20 64 75 | 6d 70 20 69 74 20 74 6f |. Now du|mp it to|
|00001950| 20 61 20 66 69 6c 65 2e | 0d 3e 20 73 65 74 74 65 | a file.|.> sette|
|00001960| 72 6d 28 22 6c 61 74 65 | 78 22 29 3b 0d 3e 20 70 |rm("late|x");.> p|
|00001970| 6c 6f 74 28 22 73 65 74 | 20 6f 75 74 70 75 74 20 |lot("set| output |
|00001980| 5c 22 73 69 6e 65 2e 70 | 6c 6f 74 5c 22 20 22 29 |\"sine.p|lot\" ")|
|00001990| 3b 0d 3e 20 70 6c 6f 74 | 28 41 29 3b 0d 5c 65 6e |;.> plot|(A);.\en|
|000019a0| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0d 0d 54 68 65 |d{verbat|im}..The|
|000019b0| 20 70 6c 6f 74 20 6c 6f | 6f 6b 65 64 20 73 6f 6d | plot lo|oked som|
|000019c0| 65 74 68 69 6e 67 20 6c | 69 6b 65 20 74 68 69 73 |ething l|ike this|
|000019d0| 3a 0d 0d 5c 69 6e 70 75 | 74 7b 73 69 6e 65 2e 70 |:..\inpu|t{sine.p|
|000019e0| 6c 6f 74 7d 0d 0d 49 66 | 20 74 68 65 20 6d 61 74 |lot}..If| the mat|
|000019f0| 72 69 78 20 6f 6e 6c 79 | 20 68 61 73 20 6f 6e 65 |rix only| has one|
|00001a00| 20 63 6f 6c 75 6d 6e 2c | 20 74 68 65 6e 20 74 68 | column,| then th|
|00001a10| 65 20 69 6e 64 65 78 20 | 76 61 6c 75 65 73 20 61 |e index |values a|
|00001a20| 72 65 20 75 73 65 64 20 | 61 73 0d 74 68 65 20 69 |re used |as.the i|
|00001a30| 6e 64 65 70 65 6e 64 61 | 6e 74 20 76 61 72 69 61 |ndependa|nt varia|
|00001a40| 62 6c 65 2c 20 61 6e 64 | 20 74 68 65 20 63 6f 6c |ble, and| the col|
|00001a50| 75 6d 6e 20 76 65 63 74 | 6f 72 20 69 73 20 70 6c |umn vect|or is pl|
|00001a60| 6f 74 74 65 64 20 61 73 | 20 74 68 65 0d 64 65 70 |otted as| the.dep|
|00001a70| 65 6e 64 65 6e 74 20 76 | 61 72 69 61 62 6c 65 2e |endent v|ariable.|
|00001a80| 20 20 48 65 72 65 20 69 | 73 20 61 20 65 78 61 6d | Here i|s a exam|
|00001a90| 70 6c 65 20 73 68 6f 77 | 69 6e 67 20 74 68 69 73 |ple show|ing this|
|00001aa0| 20 66 65 61 74 75 72 65 | 3a 0d 5c 62 65 67 69 6e | feature|:.\begin|
|00001ab0| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 3e 20 42 20 3d |{verbati|m}.> B =|
|00001ac0| 20 72 61 6e 64 28 31 30 | 2c 31 29 20 2a 20 32 30 | rand(10|,1) * 20|
|00001ad0| 3b 0d 3e 20 2f 2f 20 53 | 74 69 6c 6c 20 69 6e 20 |;.> // S|till in |
|00001ae0| 6c 61 74 65 78 20 6d 6f | 64 65 2c 20 6e 65 65 64 |latex mo|de, need|
|00001af0| 20 6e 65 77 20 66 69 6c | 65 20 74 6f 20 61 76 6f | new fil|e to avo|
|00001b00| 69 64 20 6f 76 65 72 2d | 77 72 69 74 65 0d 3e 20 |id over-|write.> |
|00001b10| 70 6c 6f 74 28 22 20 73 | 65 74 20 6f 75 74 70 75 |plot(" s|et outpu|
|00001b20| 74 20 5c 22 72 61 6e 64 | 6f 6d 2e 70 6c 6f 74 5c |t \"rand|om.plot\|
|00001b30| 22 20 22 29 3b 0d 3e 20 | 70 6c 6f 74 28 42 29 3b |" ");.> |plot(B);|
|00001b40| 0d 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0d |.\end{ve|rbatim}.|
|00001b50| 0d 57 68 69 63 68 20 77 | 69 6c 6c 20 70 72 6f 64 |.Which w|ill prod|
|00001b60| 75 63 65 20 6f 75 74 70 | 75 74 20 6c 69 6b 65 3a |uce outp|ut like:|
|00001b70| 0d 0d 5c 69 6e 70 75 74 | 7b 72 61 6e 64 6f 6d 2e |..\input|{random.|
|00001b80| 70 6c 6f 74 7d 0d 0d 54 | 68 65 20 74 68 69 72 64 |plot}..T|he third|
|00001b90| 20 74 79 70 65 20 6f 66 | 20 69 6e 70 75 74 20 69 | type of| input i|
|00001ba0| 73 20 75 73 69 6e 67 20 | 61 20 6c 69 73 74 20 6f |s using |a list o|
|00001bb0| 66 20 6d 61 74 72 69 63 | 69 65 73 2e 20 20 54 68 |f matric|ies. Th|
|00001bc0| 69 73 20 69 73 20 61 20 | 76 65 72 79 0d 66 6c 65 |is is a |very.fle|
|00001bd0| 78 69 62 6c 65 20 74 6f | 6f 6c 2c 20 74 68 6f 75 |xible to|ol, thou|
|00001be0| 67 68 20 69 74 20 68 61 | 73 20 6c 69 74 74 6c 65 |gh it ha|s little|
|00001bf0| 20 70 6f 69 6e 74 20 75 | 6e 6c 65 73 73 20 74 68 | point u|nless th|
|00001c00| 65 20 6d 61 74 72 69 63 | 69 65 73 20 68 61 76 65 |e matric|ies have|
|00001c10| 0d 7b 5c 65 6d 20 64 69 | 66 66 65 72 65 6e 74 7d |.{\em di|fferent}|
|00001c20| 20 66 69 72 73 74 20 63 | 6f 6c 75 6d 6e 73 2e 20 | first c|olumns. |
|00001c30| 20 49 6e 20 74 68 69 73 | 20 63 61 73 65 2c 20 74 | In this| case, t|
|00001c40| 68 65 20 74 77 6f 20 6d | 61 74 72 69 63 69 65 73 |he two m|atricies|
|00001c50| 20 77 69 6c 6c 0d 62 65 | 20 70 6c 6f 74 74 65 64 | will.be| plotted|
|00001c60| 20 6f 6e 20 74 68 65 20 | 73 61 6d 65 20 67 72 61 | on the |same gra|
|00001c70| 70 68 2c 20 6f 76 65 72 | 20 74 68 65 20 64 6f 6d |ph, over| the dom|
|00001c80| 61 69 6e 73 20 73 70 65 | 63 69 66 69 65 64 20 62 |ains spe|cified b|
|00001c90| 79 20 74 68 65 20 66 69 | 72 73 74 0d 63 6f 6c 75 |y the fi|rst.colu|
|00001ca0| 6d 6e 2e 20 48 65 72 65 | 20 69 73 20 61 6e 20 65 |mn. Here| is an e|
|00001cb0| 78 61 6d 70 6c 65 3a 0d | 0d 5c 62 65 67 69 6e 7b |xample:.|.\begin{|
|00001cc0| 76 65 72 62 61 74 69 6d | 7d 0d 3e 20 78 20 3d 20 |verbatim|}.> x = |
|00001cd0| 2d 70 69 3a 70 69 3a 30 | 2e 31 3b 0d 3e 20 77 20 |-pi:pi:0|.1;.> w |
|00001ce0| 3d 20 30 3a 32 2a 70 69 | 3a 30 2e 31 3b 0d 3e 20 |= 0:2*pi|:0.1;.> |
|00001cf0| 43 20 3d 20 5b 78 27 2c | 20 63 6f 73 28 78 29 27 |C = [x',| cos(x)'|
|00001d00| 5d 3b 0d 3e 20 44 20 3d | 20 5b 77 27 2c 20 73 69 |];.> D =| [w', si|
|00001d10| 6e 28 77 29 27 5d 3b 0d | 3e 20 70 6c 6f 74 28 3c |n(w)'];.|> plot(<|
|00001d20| 3c 43 3b 44 3e 3e 29 3b | 0d 3e 20 2f 2f 20 4a 75 |<C;D>>);|.> // Ju|
|00001d30| 73 74 20 61 73 20 65 78 | 70 65 63 74 65 64 2e 2e |st as ex|pected..|
|00001d40| 2e 0d 3e 20 73 65 74 74 | 65 72 6d 28 22 6c 61 74 |..> sett|erm("lat|
|00001d50| 65 78 22 29 3b 0d 3e 20 | 70 6c 6f 74 28 22 73 65 |ex");.> |plot("se|
|00001d60| 74 20 6f 75 74 70 75 74 | 20 5c 22 43 6f 73 4e 53 |t output| \"CosNS|
|00001d70| 69 6e 2e 70 6c 6f 74 5c | 22 20 22 29 3b 0d 3e 20 |in.plot\|" ");.> |
|00001d80| 70 6c 6f 74 28 3c 3c 43 | 3b 44 3e 3e 29 3b 0d 5c |plot(<<C|;D>>);.\|
|00001d90| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0d 57 |end{verb|atim}..W|
|00001da0| 68 69 63 68 20 77 69 6c | 6c 20 70 72 6f 64 75 63 |hich wil|l produc|
|00001db0| 65 20 6f 75 74 70 75 74 | 20 6c 69 6b 65 3a 0d 0d |e output| like:..|
|00001dc0| 5c 69 6e 70 75 74 7b 43 | 6f 73 4e 53 69 6e 2e 70 |\input{C|osNSin.p|
|00001dd0| 6c 6f 74 7d 0d 0d 49 6e | 20 74 68 61 74 20 65 78 |lot}..In| that ex|
|00001de0| 61 6d 70 6c 65 2c 20 74 | 68 65 20 69 6e 64 65 70 |ample, t|he indep|
|00001df0| 65 6e 64 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |endent v|ariables|
|00001e00| 20 68 61 64 20 61 20 70 | 61 72 74 6c 79 20 63 6f | had a p|artly co|
|00001e10| 6d 6d 6f 6e 20 64 6f 6d | 61 69 6e 2c 0d 74 68 6f |mmon dom|ain,.tho|
|00001e20| 75 67 68 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |ugh ther|e is no |
|00001e30| 72 65 61 73 6f 6e 20 77 | 68 79 20 74 68 69 73 20 |reason w|hy this |
|00001e40| 68 61 73 20 74 6f 20 62 | 65 20 73 6f 2c 20 61 73 |has to b|e so, as|
|00001e50| 20 67 6e 75 70 6c 6f 74 | 20 69 73 20 63 61 70 61 | gnuplot| is capa|
|00001e60| 62 6c 65 0d 6f 66 20 61 | 63 63 65 70 74 69 6e 67 |ble.of a|ccepting|
|00001e70| 20 6e 6f 6e 2d 69 6e 74 | 65 72 73 65 63 74 69 6e | non-int|ersectin|
|00001e80| 67 20 64 6f 6d 61 69 6e | 73 2e 0d 0d 49 66 20 79 |g domain|s...If y|
|00001e90| 6f 75 20 77 61 6e 74 20 | 74 6f 20 68 61 76 65 20 |ou want |to have |
|00001ea0| 74 77 6f 20 64 69 66 66 | 65 72 65 6e 74 20 70 6c |two diff|erent pl|
|00001eb0| 6f 74 73 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |ots at t|he same |
|00001ec0| 74 69 6d 65 2c 20 79 6f | 75 20 6e 65 65 64 20 74 |time, yo|u need t|
|00001ed0| 6f 0d 73 70 65 63 69 66 | 79 20 61 20 70 6c 6f 74 |o.specif|y a plot|
|00001ee0| 20 70 72 6f 63 65 73 73 | 20 6e 75 6d 62 65 72 2e | process| number.|
|00001ef0| 20 48 65 72 65 20 69 73 | 20 61 6e 20 65 78 61 6d | Here is| an exam|
|00001f00| 70 6c 65 20 6f 66 20 68 | 6f 77 20 74 6f 20 70 72 |ple of h|ow to pr|
|00001f10| 6f 64 75 63 65 0d 74 68 | 72 65 65 20 67 72 61 70 |oduce.th|ree grap|
|00001f20| 68 73 20 6f 6e 20 61 20 | 73 79 73 74 65 6d 20 63 |hs on a |system c|
|00001f30| 61 70 61 62 6c 65 20 6f | 66 20 64 69 73 70 6c 61 |apable o|f displa|
|00001f40| 79 69 6e 67 20 73 65 76 | 65 72 61 6c 20 77 69 6e |ying sev|eral win|
|00001f50| 64 6f 77 73 2c 20 73 75 | 63 68 0d 61 73 20 58 20 |dows, su|ch.as X |
|00001f60| 77 69 6e 64 6f 77 73 3a | 0d 0d 5c 62 65 67 69 6e |windows:|..\begin|
|00001f70| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 3e 20 78 20 3d |{verbati|m}.> x =|
|00001f80| 20 2d 70 69 3a 70 69 3a | 30 2e 31 3b 0d 3e 20 2f | -pi:pi:|0.1;.> /|
|00001f90| 2f 20 54 68 65 20 66 69 | 72 73 74 20 70 6c 6f 74 |/ The fi|rst plot|
|00001fa0| 20 64 65 66 61 75 6c 74 | 73 20 74 6f 20 70 6c 6f | default|s to plo|
|00001fb0| 74 20 70 72 6f 63 65 73 | 73 20 7a 65 72 6f 0d 3e |t proces|s zero.>|
|00001fc0| 20 70 6c 6f 74 28 5b 78 | 27 2c 63 6f 73 28 78 29 | plot([x|',cos(x)|
|00001fd0| 27 5d 29 3b 0d 3e 20 70 | 6c 6f 74 28 5b 78 27 2c |']);.> p|lot([x',|
|00001fe0| 73 69 6e 28 78 29 27 5d | 2c 31 29 3b 0d 3e 20 2f |sin(x)']|,1);.> /|
|00001ff0| 2f 20 4e 6f 77 20 63 6f | 6d 62 69 6e 65 20 74 68 |/ Now co|mbine th|
|00002000| 65 20 74 77 6f 0d 3e 20 | 70 6c 6f 74 28 5b 78 27 |e two.> |plot([x'|
|00002010| 2c 63 6f 73 28 78 29 27 | 2c 73 69 6e 28 78 29 27 |,cos(x)'|,sin(x)'|
|00002020| 5d 2c 32 29 3b 0d 5c 65 | 6e 64 7b 76 65 72 62 61 |],2);.\e|nd{verba|
|00002030| 74 69 6d 7d 0d 0d 54 68 | 65 20 6c 61 73 74 20 63 |tim}..Th|e last c|
|00002040| 6f 6d 6d 61 6e 64 20 73 | 68 6f 77 73 20 68 6f 77 |ommand s|hows how|
|00002050| 20 74 6f 20 70 6c 6f 74 | 20 6d 75 6c 74 69 70 6c | to plot| multipl|
|00002060| 65 20 63 75 72 76 65 73 | 20 6f 6e 20 61 20 73 69 |e curves| on a si|
|00002070| 6e 67 6c 65 20 70 6c 6f | 74 0d 77 69 74 68 6f 75 |ngle plo|t.withou|
|00002080| 74 20 75 73 69 6e 67 20 | 61 20 6c 69 73 74 20 2d |t using |a list -|
|00002090| 2d 2d 20 72 65 6d 65 6d | 62 65 72 20 74 68 61 74 |-- remem|ber that|
|000020a0| 20 65 61 63 68 20 63 6f | 6c 75 6d 6e 20 61 66 74 | each co|lumn aft|
|000020b0| 65 72 20 74 68 65 20 66 | 69 72 73 74 20 69 73 0d |er the f|irst is.|
|000020c0| 74 72 65 61 74 65 64 20 | 61 73 20 61 20 64 65 70 |treated |as a dep|
|000020d0| 65 6e 64 61 6e 74 20 76 | 61 72 69 61 62 6c 65 20 |endant v|ariable |
|000020e0| 74 6f 20 74 68 65 20 66 | 69 72 73 74 20 63 6f 6c |to the f|irst col|
|000020f0| 75 6d 6e 2e 0d 0d 54 68 | 65 20 65 66 66 65 63 74 |umn...Th|e effect|
|00002100| 20 6f 66 20 74 68 69 73 | 20 69 73 20 62 65 73 74 | of this| is best|
|00002110| 20 73 65 65 6e 20 62 79 | 20 61 63 74 75 61 6c 6c | seen by| actuall|
|00002120| 79 20 74 72 79 69 6e 67 | 20 69 74 20 6f 6e 20 61 |y trying| it on a|
|00002130| 20 73 79 73 74 65 6d 0d | 63 61 70 61 62 6c 65 20 | system.|capable |
|00002140| 6f 66 20 64 69 73 70 6c | 61 79 69 6e 67 20 6d 75 |of displ|aying mu|
|00002150| 6c 74 69 70 6c 65 20 70 | 6c 6f 74 73 2e 20 20 0d |ltiple p|lots. .|
|00002160| 0d 41 66 74 65 72 20 79 | 6f 75 20 68 61 76 65 20 |.After y|ou have |
|00002170| 70 72 6f 64 75 63 65 64 | 20 6d 75 6c 74 69 70 6c |produced| multipl|
|00002180| 65 20 70 6c 6f 74 73 20 | 28 72 65 71 75 69 72 69 |e plots |(requiri|
|00002190| 6e 67 20 6d 75 6c 74 69 | 70 6c 65 20 63 6f 70 69 |ng multi|ple copi|
|000021a0| 65 73 20 6f 66 0d 74 68 | 65 20 67 6e 75 70 6c 6f |es of.th|e gnuplo|
|000021b0| 74 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 62 65 20 |t progra|m to be |
|000021c0| 72 75 6e 29 2c 20 79 6f | 75 20 6d 61 79 20 77 69 |run), yo|u may wi|
|000021d0| 73 68 20 74 6f 20 63 6c | 65 61 6e 20 75 70 20 74 |sh to cl|ean up t|
|000021e0| 68 65 20 73 63 72 65 65 | 6e 0d 61 6e 64 20 66 72 |he scree|n.and fr|
|000021f0| 65 65 20 75 70 20 73 6f | 6d 65 20 72 65 73 6f 75 |ee up so|me resou|
|00002200| 72 63 65 73 2c 20 73 6f | 20 79 6f 75 20 6e 65 65 |rces, so| you nee|
|00002210| 64 20 74 6f 20 6b 69 6c | 6c 20 73 6f 6d 65 20 6f |d to kil|l some o|
|00002220| 66 20 74 68 65 20 70 6c | 6f 74 73 2e 0d 59 6f 75 |f the pl|ots..You|
|00002230| 20 63 6f 75 6c 64 20 61 | 6c 77 61 79 73 20 65 78 | could a|lways ex|
|00002240| 69 74 20 5c 52 4c 61 42 | 2c 20 62 75 74 20 74 68 |it \RLaB|, but th|
|00002250| 61 74 20 69 73 20 6e 6f | 74 20 61 6c 77 61 79 73 |at is no|t always|
|00002260| 20 64 65 73 69 72 61 62 | 6c 65 2e 20 20 53 6f 0d | desirab|le. So.|
|00002270| 74 68 65 20 5c 76 65 72 | 62 2b 70 63 6c 6f 73 65 |the \ver|b+pclose|
|00002280| 2b 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 70 72 |+ functi|on is pr|
|00002290| 6f 76 69 64 65 64 2e 20 | 53 65 63 74 69 6f 6e 7e |ovided. |Section~|
|000022a0| 5c 72 65 66 7b 66 6e 3a | 70 63 6c 6f 73 65 7d 20 |\ref{fn:|pclose} |
|000022b0| 68 61 73 0d 61 6c 6c 20 | 74 68 65 20 64 65 74 61 |has.all |the deta|
|000022c0| 69 6c 73 2c 20 73 6f 20 | 73 75 66 66 69 63 65 20 |ils, so |suffice |
|000022d0| 74 6f 20 73 61 79 20 74 | 68 61 74 20 79 6f 75 20 |to say t|hat you |
|000022e0| 63 61 6e 20 6b 69 6c 6c | 20 6f 66 66 20 61 20 70 |can kill| off a p|
|000022f0| 6c 6f 74 20 70 72 6f 63 | 65 73 73 0d 62 79 20 73 |lot proc|ess.by s|
|00002300| 70 65 63 69 66 79 69 6e | 67 20 69 74 73 20 70 6c |pecifyin|g its pl|
|00002310| 6f 74 20 70 72 6f 63 65 | 73 73 20 6e 75 6d 62 65 |ot proce|ss numbe|
|00002320| 72 20 61 73 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |r as an |argument|
|00002330| 20 74 6f 20 5c 76 65 72 | 62 2b 70 63 6c 6f 73 65 | to \ver|b+pclose|
|00002340| 2b 2e 0d 0d 57 69 74 68 | 20 61 6c 6c 20 74 68 6f |+...With| all tho|
|00002350| 73 65 20 70 6c 6f 74 20 | 70 72 6f 63 65 73 73 20 |se plot |process |
|00002360| 6e 75 6d 62 65 72 73 20 | 66 6c 6f 61 74 69 6e 67 |numbers |floating|
|00002370| 20 61 72 6f 75 6e 64 2c | 20 69 74 20 69 73 20 65 | around,| it is e|
|00002380| 61 73 79 20 74 6f 0d 6c | 6f 73 65 20 74 72 61 63 |asy to.l|ose trac|
|00002390| 6b 20 6f 66 20 68 6f 77 | 20 65 61 63 68 20 6f 6e |k of how| each on|
|000023a0| 65 20 69 73 20 73 65 74 | 20 75 70 2c 20 61 6e 64 |e is set| up, and|
|000023b0| 20 77 68 69 63 68 20 66 | 69 6c 65 73 20 69 74 20 | which f|iles it |
|000023c0| 69 73 20 75 73 69 6e 67 | 20 28 6f 72 0d 77 6f 75 |is using| (or.wou|
|000023d0| 6c 64 20 75 73 65 29 2e | 20 20 53 6f 20 74 68 65 |ld use).| So the|
|000023e0| 20 5c 76 65 72 62 2b 73 | 68 6f 77 70 6c 6f 74 2b | \verb+s|howplot+|
|000023f0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 0d 70 72 6f | functio|n is.pro|
|00002400| 76 69 64 65 64 2e 20 54 | 68 69 73 20 66 75 6e 63 |vided. T|his func|
|00002410| 74 69 6f 6e 20 69 73 20 | 64 6f 63 75 6d 65 6e 74 |tion is |document|
|00002420| 65 64 20 69 6e 20 53 65 | 63 74 69 6f 6e 7e 5c 72 |ed in Se|ction~\r|
|00002430| 65 66 7b 66 6e 3a 73 68 | 6f 77 70 6c 6f 74 7d 2e |ef{fn:sh|owplot}.|
|00002440| 0d 41 20 74 79 70 69 63 | 61 6c 20 75 73 65 20 6f |.A typic|al use o|
|00002450| 66 20 5c 76 65 72 62 2b | 73 68 6f 77 70 6c 6f 74 |f \verb+|showplot|
|00002460| 2b 20 69 73 3a 0d 5c 62 | 65 67 69 6e 7b 76 65 72 |+ is:.\b|egin{ver|
|00002470| 62 61 74 69 6d 7d 0d 3e | 20 20 78 20 3d 20 2d 70 |batim}.>| x = -p|
|00002480| 69 3a 70 69 3a 30 2e 31 | 3b 0d 3e 20 20 70 6c 6f |i:pi:0.1|;.> plo|
|00002490| 74 28 5b 78 27 2c 63 6f | 73 28 78 29 27 2c 73 69 |t([x',co|s(x)',si|
|000024a0| 6e 28 78 29 27 5d 2c 31 | 29 3b 0d 3e 20 20 70 6c |n(x)'],1|);.> pl|
|000024b0| 6f 74 28 5b 78 27 2c 63 | 6f 73 28 78 29 27 2c 32 |ot([x',c|os(x)',2|
|000024c0| 2a 73 69 6e 28 78 29 27 | 5d 2c 32 29 3b 0d 3e 20 |*sin(x)'|],2);.> |
|000024d0| 73 68 6f 77 70 6c 6f 74 | 28 32 29 3b 0d 20 20 20 |showplot|(2);. |
|000024e0| 20 20 20 20 20 50 6c 6f | 74 20 4c 69 73 74 20 32 | Plo|t List 2|
|000024f0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002500| 20 54 65 72 6d 3a 20 20 | 20 20 20 20 20 20 20 20 | Term: | |
|00002510| 20 20 20 20 20 20 20 20 | 20 58 31 31 0d 20 20 20 | | X11. |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 75 74 | | Out|
|00002530| 70 75 74 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |put: | |
|00002540| 20 20 20 20 20 73 74 64 | 6f 75 74 0d 20 20 20 20 | std|out. |
|00002550| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 6d 70 20 | | Tmp |
|00002560| 46 69 6c 65 73 3a 20 20 | 20 20 20 20 20 20 20 20 |Files: | |
|00002570| 20 20 20 20 20 72 6c 61 | 62 2d 74 6d 70 66 2d 32 | rla|b-tmpf-2|
|00002580| 2d 31 2d 31 20 72 6c 61 | 62 2d 74 6d 70 66 2d 32 |-1-1 rla|b-tmpf-2|
|00002590| 2d 32 2d 31 0d 20 20 20 | 20 20 20 20 20 20 20 20 |-2-1. | |
|000025a0| 20 20 20 20 20 48 61 72 | 64 43 6f 70 79 3a 20 20 | Har|dCopy: |
|000025b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 6f 73 | | pos|
|000025c0| 74 73 63 72 69 70 74 0d | 20 20 20 20 20 20 20 20 |tscript.| |
|000025d0| 20 20 20 20 20 20 20 20 | 48 61 72 64 43 6f 70 79 | |HardCopy|
|000025e0| 20 46 69 6c 65 73 3a 20 | 20 20 20 20 20 20 20 20 | Files: | |
|000025f0| 72 6c 61 62 2d 74 6d 70 | 2d 68 72 64 66 2e 32 0d |rlab-tmp|-hrdf.2.|
|00002600| 3e 20 73 68 6f 77 70 6c | 6f 74 28 31 29 3b 0d 20 |> showpl|ot(1);. |
|00002610| 20 20 20 20 20 20 20 50 | 6c 6f 74 20 4c 69 73 74 | P|lot List|
|00002620| 20 31 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1. | |
|00002630| 20 20 20 54 65 72 6d 3a | 20 20 20 20 20 20 20 20 | Term:| |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 20 58 31 31 0d 20 | | X11. |
|00002650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4f | | O|
|00002660| 75 74 70 75 74 3a 20 20 | 20 20 20 20 20 20 20 20 |utput: | |
|00002670| 20 20 20 20 20 20 20 73 | 74 64 6f 75 74 0d 20 20 | s|tdout. |
|00002680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 6d | | Tm|
|00002690| 70 20 46 69 6c 65 73 3a | 20 20 20 20 20 20 20 20 |p Files:| |
|000026a0| 20 20 20 20 20 20 20 72 | 6c 61 62 2d 74 6d 70 66 | r|lab-tmpf|
|000026b0| 2d 31 2d 31 2d 31 20 72 | 6c 61 62 2d 74 6d 70 66 |-1-1-1 r|lab-tmpf|
|000026c0| 2d 31 2d 32 2d 31 0d 20 | 20 20 20 20 20 20 20 20 |-1-2-1. | |
|000026d0| 20 20 20 20 20 20 20 48 | 61 72 64 43 6f 70 79 3a | H|ardCopy:|
|000026e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000026f0| 6f 73 74 73 63 72 69 70 | 74 0d 20 20 20 20 20 20 |ostscrip|t. |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 48 61 72 64 43 6f | | HardCo|
|00002710| 70 79 20 46 69 6c 65 73 | 3a 20 20 20 20 20 20 20 |py Files|: |
|00002720| 20 20 72 6c 61 62 2d 74 | 6d 70 2d 68 72 64 66 2e | rlab-t|mp-hrdf.|
|00002730| 31 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |1.\end{v|erbatim}|
|00002740| 0d 0d 5c 73 65 63 74 69 | 6f 6e 7b 41 64 76 61 6e |..\secti|on{Advan|
|00002750| 63 65 64 20 50 6c 6f 74 | 73 7d 0d 0d 54 68 69 73 |ced Plot|s}..This|
|00002760| 20 73 65 63 74 69 6f 6e | 20 64 65 61 6c 73 20 6d | section| deals m|
|00002770| 6f 72 65 20 77 69 74 68 | 20 74 68 65 20 66 65 61 |ore with| the fea|
|00002780| 74 75 72 65 73 20 6f 66 | 20 67 6e 75 70 6c 6f 74 |tures of| gnuplot|
|00002790| 20 61 6e 64 20 6c 65 73 | 73 20 77 69 74 68 20 74 | and les|s with t|
|000027a0| 68 65 0d 61 63 74 75 61 | 6c 20 5c 52 4c 61 42 5c |he.actua|l \RLaB\|
|000027b0| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 68 61 74 20 | functio|ns that |
|000027c0| 63 61 6c 6c 20 74 68 6f | 73 65 20 66 65 61 74 75 |call tho|se featu|
|000027d0| 72 65 73 2e 20 20 59 6f | 75 20 77 69 6c 6c 20 66 |res. Yo|u will f|
|000027e0| 69 6e 64 20 74 68 69 73 | 0d 73 65 63 74 69 6f 6e |ind this|.section|
|000027f0| 20 6d 6f 72 65 20 74 72 | 61 63 74 69 62 6c 65 20 | more tr|actible |
|00002800| 69 66 20 79 6f 75 20 68 | 61 76 65 20 74 68 65 20 |if you h|ave the |
|00002810| 67 6e 75 70 6c 6f 74 20 | 6d 61 6e 75 61 6c 20 63 |gnuplot |manual c|
|00002820| 6c 6f 73 65 20 61 74 20 | 68 61 6e 64 2e 0d 49 6e |lose at |hand..In|
|00002830| 20 61 64 64 69 74 69 6f | 6e 2c 20 69 66 20 79 6f | additio|n, if yo|
|00002840| 75 20 72 65 63 61 6c 6c | 20 74 68 61 74 20 61 6c |u recall| that al|
|00002850| 6c 20 73 74 72 69 6e 67 | 20 61 72 67 75 6d 65 6e |l string| argumen|
|00002860| 74 73 20 74 6f 20 5c 76 | 65 72 62 2b 70 6c 6f 74 |ts to \v|erb+plot|
|00002870| 2b 0d 61 72 65 20 70 61 | 73 73 65 64 20 64 69 72 |+.are pa|ssed dir|
|00002880| 65 63 74 6c 79 20 74 6f | 20 67 6e 75 70 6c 6f 74 |ectly to| gnuplot|
|00002890| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 62 65 20 |, you sh|ould be |
|000028a0| 61 62 6c 65 20 74 6f 20 | 75 73 65 20 77 68 69 63 |able to |use whic|
|000028b0| 68 65 76 65 72 0d 66 65 | 61 74 75 72 65 73 20 6f |hever.fe|atures o|
|000028c0| 66 20 67 6e 75 70 6c 6f | 74 20 79 6f 75 20 77 61 |f gnuplo|t you wa|
|000028d0| 6e 74 2e 0d 0d 5c 70 61 | 72 61 67 72 61 70 68 7b |nt...\pa|ragraph{|
|000028e0| 72 65 70 6c 6f 74 7d 0d | 0d 49 66 20 79 6f 75 20 |replot}.|.If you |
|000028f0| 77 61 6e 74 20 74 6f 20 | 63 68 61 6e 67 65 20 74 |want to |change t|
|00002900| 68 65 20 73 65 74 74 69 | 6e 67 73 2c 20 61 6e 64 |he setti|ngs, and|
|00002910| 20 74 68 65 6e 20 73 65 | 65 20 74 68 65 20 72 65 | then se|e the re|
|00002920| 73 75 6c 74 20 6f 66 0d | 70 6c 6f 74 74 69 6e 67 |sult of.|plotting|
|00002930| 20 61 20 67 72 61 70 68 | 20 61 67 61 69 6e 2c 20 | a graph| again, |
|00002940| 74 68 65 20 67 6e 75 70 | 6c 6f 74 20 5c 76 65 72 |the gnup|lot \ver|
|00002950| 62 2b 72 65 70 6c 6f 74 | 2b 20 63 6f 6d 6d 61 6e |b+replot|+ comman|
|00002960| 64 20 6d 61 79 20 62 65 | 20 6f 66 0d 75 73 65 2e |d may be| of.use.|
|00002970| 20 49 74 20 73 69 6d 70 | 6c 79 20 63 61 75 73 65 | It simp|ly cause|
|00002980| 73 20 74 68 65 20 6c 61 | 73 74 20 70 6c 6f 74 20 |s the la|st plot |
|00002990| 74 6f 20 62 65 20 72 65 | 64 6f 6e 65 2e 20 59 6f |to be re|done. Yo|
|000029a0| 75 20 77 6f 75 6c 64 20 | 75 73 65 20 69 74 20 61 |u would |use it a|
|000029b0| 73 0d 5c 76 65 72 62 2b | 70 6c 6f 74 28 22 72 65 |s.\verb+|plot("re|
|000029c0| 70 6c 6f 74 22 29 2b 2e | 20 20 54 68 69 73 20 63 |plot")+.| This c|
|000029d0| 61 6e 20 73 61 76 65 20 | 74 69 6d 65 20 69 66 20 |an save |time if |
|000029e0| 79 6f 75 20 61 72 65 20 | 74 72 61 6e 73 66 65 72 |you are |transfer|
|000029f0| 72 69 6e 67 20 61 0d 6c | 6f 74 20 6f 66 20 64 61 |ring a.l|ot of da|
|00002a00| 74 61 20 70 6f 69 6e 74 | 73 2e 0d 0d 5c 70 61 72 |ta point|s...\par|
|00002a10| 61 67 72 61 70 68 7b 70 | 6f 6c 61 72 7d 0d 0d 54 |agraph{p|olar}..T|
|00002a20| 68 65 20 5c 76 65 72 62 | 2b 73 65 74 20 70 6f 6c |he \verb|+set pol|
|00002a30| 61 72 2b 20 63 6f 6d 6d | 61 6e 64 20 73 77 69 74 |ar+ comm|and swit|
|00002a40| 63 68 65 73 20 67 6e 75 | 70 6c 6f 74 20 66 72 6f |ches gnu|plot fro|
|00002a50| 6d 20 69 74 73 20 64 65 | 66 61 75 6c 74 0d 72 65 |m its de|fault.re|
|00002a60| 63 74 61 6e 67 75 6c 61 | 72 20 63 6f 6f 72 64 69 |ctangula|r coordi|
|00002a70| 6e 61 74 65 20 73 65 74 | 20 74 6f 20 61 20 70 6f |nate set| to a po|
|00002a80| 6c 61 72 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 73 |lar coor|dinate s|
|00002a90| 65 74 2e 20 20 49 6e 20 | 74 68 69 73 20 6d 6f 64 |et. In |this mod|
|00002aa0| 65 2c 0d 74 68 65 20 69 | 6e 64 65 70 65 6e 64 61 |e,.the i|ndependa|
|00002ab0| 6e 74 20 76 61 72 69 61 | 62 6c 65 20 69 73 20 74 |nt varia|ble is t|
|00002ac0| 68 65 20 61 6e 67 6c 65 | 2c 20 61 6e 64 20 74 68 |he angle|, and th|
|00002ad0| 65 20 64 65 70 65 6e 64 | 65 6e 74 20 76 61 72 69 |e depend|ent vari|
|00002ae0| 61 62 6c 65 20 69 73 0d | 74 68 65 20 72 61 64 69 |able is.|the radi|
|00002af0| 75 73 2e 20 20 48 65 72 | 65 20 69 73 20 61 6e 20 |us. Her|e is an |
|00002b00| 65 78 61 6d 70 6c 65 20 | 6f 66 20 68 6f 77 20 74 |example |of how t|
|00002b10| 6f 20 70 72 6f 64 75 63 | 65 20 61 20 63 69 72 63 |o produc|e a circ|
|00002b20| 6c 65 20 28 63 6f 6e 73 | 74 61 6e 74 0d 72 61 64 |le (cons|tant.rad|
|00002b30| 69 75 73 20 6f 66 20 24 | 31 2e 35 38 24 29 2e 0d |ius of $|1.58$)..|
|00002b40| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00002b50| 0d 3e 20 70 6c 6f 74 28 | 22 73 65 74 20 70 6f 6c |.> plot(|"set pol|
|00002b60| 61 72 22 29 3b 0d 3e 20 | 61 20 3d 20 6c 69 6e 73 |ar");.> |a = lins|
|00002b70| 70 61 63 65 28 30 2c 32 | 2a 70 69 2c 31 30 30 29 |pace(0,2|*pi,100)|
|00002b80| 3b 0d 3e 20 62 20 20 3d | 20 7a 65 72 6f 73 28 31 |;.> b =| zeros(1|
|00002b90| 30 30 2c 31 29 2b 31 2e | 35 38 3b 0d 3e 20 70 6c |00,1)+1.|58;.> pl|
|00002ba0| 6f 74 28 5b 61 27 2c 62 | 5d 29 3b 0d 3e 20 57 61 |ot([a',b|]);.> Wa|
|00002bb0| 72 6e 69 6e 67 3a 20 65 | 6d 70 74 79 20 79 20 72 |rning: e|mpty y r|
|00002bc0| 61 6e 67 65 20 5b 31 2e | 35 38 3a 31 2e 35 38 5d |ange [1.|58:1.58]|
|00002bd0| 2c 20 61 64 6a 75 73 74 | 69 6e 67 20 74 6f 20 5b |, adjust|ing to [|
|00002be0| 31 2e 34 32 32 3a 31 2e | 37 33 38 5d 0d 5c 65 6e |1.422:1.|738].\en|
|00002bf0| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0d 0d 54 68 65 |d{verbat|im}..The|
|00002c00| 20 77 61 72 6e 69 6e 67 | 20 6d 65 73 73 61 67 65 | warning| message|
|00002c10| 20 69 73 20 66 72 6f 6d | 20 67 6e 75 70 6c 6f 74 | is from| gnuplot|
|00002c20| 2c 20 77 68 69 63 68 20 | 77 61 73 6e 27 74 20 65 |, which |wasn't e|
|00002c30| 78 70 65 63 74 69 6e 67 | 20 74 68 65 20 72 61 6e |xpecting| the ran|
|00002c40| 67 65 20 74 6f 0d 62 65 | 20 63 6f 6e 73 74 61 6e |ge to.be| constan|
|00002c50| 74 2c 20 61 73 20 74 68 | 61 74 20 63 6f 6e 66 75 |t, as th|at confu|
|00002c60| 73 65 73 20 74 68 65 20 | 61 75 74 6f 2d 73 63 61 |ses the |auto-sca|
|00002c70| 6c 69 6e 67 20 61 6c 67 | 6f 72 69 74 68 6d 2e 20 |ling alg|orithm. |
|00002c80| 54 68 65 20 67 72 61 70 | 68 20 69 73 0d 70 6c 6f |The grap|h is.plo|
|00002c90| 74 74 65 64 20 61 73 20 | 65 78 70 65 63 74 65 64 |tted as |expected|
|00002ca0| 2c 20 67 6e 75 70 6c 6f | 74 20 6a 75 73 74 20 70 |, gnuplo|t just p|
|00002cb0| 72 65 74 65 6e 64 73 20 | 74 68 65 20 72 61 6e 67 |retends |the rang|
|00002cc0| 65 20 77 61 73 20 6c 61 | 72 67 65 72 2e 0d 0d 41 |e was la|rger...A|
|00002cd0| 20 73 6c 69 67 68 74 6c | 79 20 6d 6f 72 65 20 63 | slightl|y more c|
|00002ce0| 6f 6d 70 6c 65 78 20 65 | 78 61 6d 70 6c 65 20 69 |omplex e|xample i|
|00002cf0| 73 20 73 68 6f 77 6e 20 | 68 65 72 65 3a 0d 5c 62 |s shown |here:.\b|
|00002d00| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 3e |egin{ver|batim}.>|
|00002d10| 20 70 6c 6f 74 28 22 73 | 65 74 20 70 6f 6c 61 72 | plot("s|et polar|
|00002d20| 22 29 3b 0d 3e 20 61 20 | 3d 20 6c 69 6e 73 70 61 |");.> a |= linspa|
|00002d30| 63 65 28 30 2c 32 2a 70 | 69 2c 31 30 30 29 3b 0d |ce(0,2*p|i,100);.|
|00002d40| 3e 20 62 20 20 3d 20 63 | 6f 73 28 32 2a 61 29 3b |> b = c|os(2*a);|
|00002d50| 0d 3e 20 70 6c 6f 74 28 | 5b 61 27 2c 62 27 5d 29 |.> plot(|[a',b'])|
|00002d60| 3b 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |;.\end{v|erbatim}|
|00002d70| 0d 0d 5c 6e 6f 69 6e 64 | 65 6e 74 20 77 68 69 63 |..\noind|ent whic|
|00002d80| 68 20 70 72 6f 64 75 63 | 65 73 20 61 20 72 65 73 |h produc|es a res|
|00002d90| 75 6c 74 20 6f 66 3a 0d | 0d 25 20 74 68 69 73 20 |ult of:.|.% this |
|00002da0| 6f 6e 65 20 69 73 20 74 | 6f 6f 20 62 69 67 20 0d |one is t|oo big .|
|00002db0| 25 20 5c 69 6e 70 75 74 | 7b 70 6f 6c 61 72 2e 70 |% \input|{polar.p|
|00002dc0| 6c 6f 74 7d 0d 25 20 4d | 61 79 62 65 20 77 65 20 |lot}.% M|aybe we |
|00002dd0| 63 61 6e 20 75 73 65 20 | 54 65 58 20 3f 0d 0d 57 |can use |TeX ?..W|
|00002de0| 68 65 6e 20 75 73 69 6e | 67 20 74 68 69 73 20 6d |hen usin|g this m|
|00002df0| 6f 64 65 2c 20 79 6f 75 | 20 6d 61 79 20 77 69 73 |ode, you| may wis|
|00002e00| 68 20 74 6f 20 73 77 69 | 74 63 68 20 74 6f 20 64 |h to swi|tch to d|
|00002e10| 65 67 72 65 65 20 6d 6f | 64 65 2c 20 75 73 69 6e |egree mo|de, usin|
|00002e20| 67 20 0d 5c 76 65 72 62 | 2b 70 6c 6f 74 28 22 73 |g .\verb|+plot("s|
|00002e30| 65 74 20 61 6e 67 6c 65 | 73 20 64 65 67 72 65 65 |et angle|s degree|
|00002e40| 73 22 29 2b 2e 20 20 59 | 6f 75 20 63 61 6e 20 72 |s")+. Y|ou can r|
|00002e50| 65 76 65 72 74 20 74 6f | 20 72 61 64 69 61 6e 73 |evert to| radians|
|00002e60| 2c 0d 77 68 69 63 68 20 | 69 73 20 74 68 65 20 64 |,.which |is the d|
|00002e70| 65 66 61 75 6c 74 2c 20 | 75 73 69 6e 67 20 74 68 |efault, |using th|
|00002e80| 65 20 63 6f 6d 6d 61 6e | 64 20 5c 76 65 72 62 2b |e comman|d \verb+|
|00002e90| 70 6c 6f 74 28 22 73 65 | 74 20 61 6e 67 6c 65 73 |plot("se|t angles|
|00002ea0| 0d 72 61 64 69 61 6e 73 | 22 29 2b 2e 0d 0d 0d 5c |.radians|")+....\|
|00002eb0| 69 6e 64 65 78 7b 70 6c | 6f 74 74 69 6e 67 7c 29 |index{pl|otting|)|
|00002ec0| 7d 0d 0d 0d 0d 0d | |}..... | |
+--------+-------------------------+-------------------------+--------+--------+